<?php
return CMap::mergeArray(
		require_once(dirname(__FILE__).'/main.php'),
		array(
			// стандартный контроллер
			'defaultController' => 'site',
			'language'=>'ru',
			'preload'=>array(
				'log',
			),
			'modules'=>array(
			// uncomment the following to enable the Gii tool
			
				'gii'=>array(
					'class'=>'system.gii.GiiModule',
					'password'=>'password',
				),
			),
			// компоненты
			'components'=>array(
				'urlManager'=>array(
					'urlFormat'=>'path',
					'showScriptName'=>false,
					'rules'=>array(
						'admin/users'=>'users/admin',
						'admin/users/<id:\d+>'=>'users/update',
						'admin/menu'=>'menu/admin',
						'admin/menu/<id:\d+>'=>'menu/update',
						'admin/blocks'=>'blocks/admin',
						'admin/blocks/<id:\d+>'=>'blocks/update',
						'admin/menu-items'=>'menuItems/admin',
						'admin/menu-items/create'=>'menuItems/create',
						'admin/menu-items/<id:\d+>'=>'menuItems/update',
						'admin/menu-items/lock/<id:\d+>'=>'menuItems/lock',
						'admin/menu-items/unlock/<id:\d+>'=>'menuItems/unlock',
						'admin/content'=>'content/admin',
						'admin/content/<id:\d+>'=>'content/update',
						'admin/category-content'=>'categoryContent/admin',
						'admin/category-content/create'=>'categoryContent/create',
						'admin/category-content/delete/<id:\d+>'=>'categoryContent/delete',
						'admin/category-content/<id:\d+>'=>'categoryContent/update',
						'admin/login'=>'site/login',
						'admin'=>'site/index',
						'admin/config'=>'site/config',
						'admin/files'=>'site/files',
						'admin/sitemap'=>'site/sitemap',
						'admin/<_c>'=>'<_c>',
						'admin/<_c>/<_a>'=>'<_c>/<_a>',
					),
				),
				// пользователь
				'user'=>array(
					'loginUrl'=>array('/site/login'),
				),

				// mailer
				'mailer'=>array(
					'pathViews' => 'application.views.backend.email',
					'pathLayouts' => 'application.views.email.backend.layouts'
				),
			),
		)
);